/* 优化后的全局样式 - 只包含实际使用的样式 */

/* CSS 变量定义 */
:root {
  --primary-color: #0071E3;
  --secondary-color: #1d1d1f;
  --accent-color: #f5f5f7;
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --border-color: #d2d2d7;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #0071E3 0%, #005bb5 100%);
}

/* 基础重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

/* 标题 */
.title-primary {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.title-secondary {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* 卡片 */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

/* 工具类 */
.text-center {
  text-align: center;
}

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式断点 */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .title-primary {
    font-size: 2.5rem;
  }
  
  .title-secondary {
    font-size: 2rem;
  }
}

/* Element Plus 组件样式覆盖 */
.el-button--primary {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
}

.el-button--primary:hover {
  background: var(--gradient-primary);
  transform: translateY(-1px);
}
